loader.define(function(require,exports,module){
    // 绑定按钮跳转
	
    $(".x-login-btn").on("click",function(){
    	var uname = $('#uname').val();
    	var pwd = $('#pwd').val();
    	$.ajax({
			url:'/user/login',
			type:'post',
			data:{
				uname:uname,
				pwd:pwd
			},
			success:function(r){
				var url = r.data.url;
				router.load({ url:url, param: {} });
			},
			error:function(r){
				var resp = r.responseJSON;
				bui.alert(resp.msg);
			}
		});
    	
    })
});


